package School;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 34255
 * Date: 2024-10-25
 * Time: 8:34
 */
public class Test {
    // 主方法用于测试
    public static void main(String[] args) {
        Student[] stu = new Student[3];
        stu[0] = new Student("张三",1,0,3000,28,1,1);
        stu[1] = new Student("李四",10,0,4000,28,1,1);
        stu[2] = new Student("王五",20,0,5000,28,1,1);
        for (int i = 0; i < stu.length; i++) {
            stu[i].is_OK();
            System.out.println("该学生的奖金为：" + stu[i].sum_P());
            System.out.println("该学生的总收入为：" + stu[i].sum());
        }
    }
}
